package shuffle;

import java.util.ArrayList;
import java.util.List;

public class Main {
    public static void main(String[] args) {
        CardGame cardGame = new CardGame();
        List<Card> cardList = new ArrayList<>();
        cardList = cardGame.buyCard();
        cardGame.shuffle(cardList);
        List<List<Card>> list =  cardGame.getCard(cardList);
        System.out.println(list);
        for (int i = 0; i < list.size(); i++) {
            System.out.println("第"+(i+1)+"个人的牌"+list.get(i));
        }
        System.out.println("剩下的牌");
        System.out.println(list);
    }
}
